<template>
	<view class="box bg-f7">
		<view class="bg-white padding-l-r-30">
			<view class="justifyContent-spaceBetween align-items-center list-box" @click="goPage('/pageA/mine/personalData/personalData')">
				<text>个人资料</text>
				<u-icon name="arrow-right" color="#999"></u-icon>
			</view>
			<view class="justifyContent-spaceBetween align-items-center list-box" @click="goPage('/pageA/mine/personalData/modifyPhone/modifyPhone')">
				<text>修改手机号</text>
				<u-icon name="arrow-right" color="#999"></u-icon>
			</view>
			<view class="justifyContent-spaceBetween align-items-center list-box" @click="goPage('/pageA/mine/personalData/modifyPassword/index')">
				<text>修改密码</text>
				<u-icon name="arrow-right" color="#999"></u-icon>
			</view>
		</view>
		<view class="margin-t-20 bg-white padding-l-r-30">

			<view class="justifyContent-spaceBetween align-items-center list-box" @click="logOut">
				<text>退出登录</text>
				<u-icon name="arrow-right" color="#999"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goPage(url){
				uni.navigateTo({
					url 
				})
			},
			logOut(){
				uni.showModal({
					confirmText:'退出登录',
					showCancel:true,
					title:'提示',
					content:'您确定退出登录吗',
					success(e) {
						if(e.confirm){
							uni.clearStorageSync();
							uni.switchTab({
								url:'/pages/index/index'
							})
						}
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.list-box {
		padding: 16rpx 0;
		font-size: 28rpx;
		color: #000;
	}
</style>